home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
dignet_2_1.lha
/
dignet
/
DigNet_2.1.readme
< prev
next >
Wrap
Text File
|
1997-03-12
|
3KB
|
73 lines
Short: Easy ser network handle for games/progs
Uploader: kenny@bgnett.no (Kenneth "Kenny" Nilsen)
Author: kenny@bgnett.no (Kenneth "Kenny" Nilsen)
Type: util/libs
Requires: kickstart 2.0+
Replaces: util/libs/DigNet*
Version: 2.1
$VER: dignet.library 2.1 (12.03.97)
Copyright (C) 1997 by Digital Surface/Kenneth "Kenny" Nilsen.
All rights reserved.
NEWS: - Resource tracking ! Including debug tools that uses this feature.
- Great speed improvments on ReadNet()/WriteNet()/WriteString()
You no longer have to read/write bytes to get correct result,
the routines do it for you which increase the speed ~250%.
ReadString() still have to work the way it does.
- Buffer size now defaults to 8 KB buffer instead of 2 KB.
- Stupid bugs on the ReadString()/WriteString(). Fixed!
CHANGES: - ReadString() now returns -1 instead of 1 if buffer overflow!
- Cleaned up the autodoc for types/explinations.
Includes a simple terminal program that uses the dignet.library and take
advantages of the speed improvments in 2.1+. Source and binary included!
----------------------------------------------------------------------------
INTRODUCTION
Always wanted to make games or programs that could support serial network ?
This will maybe be the solution for you. This library will do all the dirty
work for you. All you need to do is to call read and write functions to
communicate. No more hustling with setting up structures, ports and pools
to use the device. No more DoIO.
Tested with duart.device 0 and 1 with nullmodem-cable. Tested agains modem.
Should work fine with serial.device and compatible devices. Do not use with
other devices such as trackdisk.device etc.
The library functions are fully re-entrant.
IMPORTANT:
Read the autodoc section /---background--- and ---notes--- for important
notes!
Developer files for assembler and C included. Notify me if the C includes
are incomplete, I am not a C guru at all (assembler is fine though ;)
This is version 2.1 (still beta). Let me know if you find bugs.
Email me for bugs or comments. I am happy to receive ideas.
TODO:
- SetBaud() function to easily change the baud rate.
- Error code on what type of error (out of memory, device couldn't be opened,
couldn't allocate port etc.)
IDEAS:
- Functions for modem > sending ATZ/ATDT, parsing OK/RING/CONNECT/NO CARRIER
etc. Let me know what you think.
- Resource tracker for program using the library (clean up device(s) if
program crashes)